<template>
  <van-nav-bar title="搜索结果" left-text="返回" left-arrow @click-left="$router.back()" />
  <div v-for="i in productss" :key="i.proid" class="sousuo">
    <img :src="i.img1" class="sousuoimg" />
    <span>{{ i.proname }}</span>
  </div>
</template>
<script>
import { productSousuoRequset } from '../../api/homeApi';

export default {
  data() {
    return {
      productss: {}
    }
  },
  methods: {

  },
  async mounted() {
    let r = await productSousuoRequset(this.$route.query.str);
    console.log(r.data);
    this.productss = r.data.data;

  }
}
</script>
<style lang="scss" scoped>
.sousuo {
  width: 50%;
  height: 230px;
  float: left;
  box-sizing: border-box;
  padding: 10px;

  img {
    width: 100%;
    height: 100px;
  }
}
</style>
